<template>
  <div class="recommend">
    <div v-for="item in recommend" :key="item.aaa" class="recommend-items">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: 'RecommendView',
  props: {
    recommend: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style>
  .recommend {
    display: flex;
    padding: 10px 0 20px;
    border-bottom: 8px solid #ccc;
    text-align: center;
    
  }
  .recommend-items {
    flex: 1;
  }
  .recommend-items img {
    width: 80%;
    margin-bottom: 8px;
  }
</style>